<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
    <title>Document</title>

</head>

<body>
    <div id="app">
        <p v-for="(value,key,index) in object">{{key}}:{{index}}-{{value}}</p>
    </div>
    <script>
        new Vue({
            el:'#app',
            data:{
                object:{
                    name:'孙悟空',
                    gender:'男',
                    address:'花果山',
                    school:'CQITC'
                }
            }
        })
    </script>
</body>

</html>